home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 1
/
LSD Compendium Deluxe 1.iso
/
a
/
programming
/
assembly
/
mapsrc.lha
/
macros
/
readkey
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1980-02-19
|
229 b
|
13 lines
readkey: macro ;reads a key and returns it into D0
lea keybuff(a5),a0 ;-If error, insert keybuff into list.
move.l a0,d2
move.l #2,d3
move.l conbase(a5),d1
move.l dosbase(a5),a6
jsr -42(a6)
move.b keybuff(a5),d0
endm